package com.chk.user.controller.auth;

import com.chk.commom.constants.AppHttpCodeEnum;
import com.chk.commom.utils.CommonResult;
import com.chk.commom.utils.JwtUtil;
import com.chk.user.entity.User;
import com.chk.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;

//@RefreshScope // 获取配置中心   nacos中的配置
@Slf4j
@RestController
@RequestMapping("/auth/user")
public class AuthUserController {
    @Autowired
    private UserService userService;
    @GetMapping("Info")
    public CommonResult getCurrentUserInfo(HttpServletRequest request){
        return userService.getCurrentUserInfo(request);

    }

}